package cn.stylefeng.guns.modular.wordstudy.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.wordstudy.entity.Sentence;
import cn.stylefeng.guns.modular.wordstudy.model.params.SentenceParam;
import cn.stylefeng.guns.modular.wordstudy.model.result.SentenceResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 单词例句 服务类
 * </p>
 *
 * @author 
 * @since 2020-11-24
 */
public interface SentenceService extends IService<Sentence> {

    /**
     * 新增
     *
     * @author 
     * @Date 2020-11-24
     */
    void add(SentenceParam param);

    /**
     * 删除
     *
     * @author 
     * @Date 2020-11-24
     */
    void delete(SentenceParam param);

    /**
     * 更新
     *
     * @author 
     * @Date 2020-11-24
     */
    void update(SentenceParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author 
     * @Date 2020-11-24
     */
    SentenceResult findBySpec(SentenceParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author 
     * @Date 2020-11-24
     */
    List<SentenceResult> findListBySpec(SentenceParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author 
     * @Date 2020-11-24
     */
     LayuiPageInfo findPageBySpec(SentenceParam param);

}
